/*
 * @Author: your name
 * @Date: 2021-06-16 15:32:03
 * @LastEditTime: 2021-06-16 15:35:54
 * @LastEditors: Please set LastEditors
 * @Description: 判断数组是否存在，不存在就添加
 * @FilePath: \bazai_ebook\src\utils\boost.js
 */
/* eslint-disable no-extend-native */
Array.prototype.pushWithoutDuplicate = function () {
  for (let i = 0; i < arguments.length; i++) {
    const arg = arguments[i]
    if (this.indexOf(arg) === -1) {
      this.push(arg)
    }
  }
}
